﻿// -----------------------------------------------------------------------
// <copyright file="PieceEstimator.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace JumpJump.AI
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using JumpJump.Runtime;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class PieceEstimator
    {
        #region Fields

        private const double Coeffcient_MoveDepth = 1.5;

        private const double Coeffcient_MoveCount = 1.0;

        private Piece _currentPiece;

        private Chessboard _currentBoard;

        #endregion

        #region Properties

        public int Value
        {
            get;
            set;
        }

        #endregion

        #region Constructor

        public PieceEstimator(Piece piece, Chessboard board)
        {
            this._currentPiece = piece;
            this._currentBoard = board;
        }

        #endregion

        #region Public Methods

        public void Estimator()
        {
            
        }

        #endregion

        #region Private Methods

        private void GetMovementValue()
        {
            int maxDepth = -1;
            foreach (Coordinate coor in _currentPiece.CanMoveToPositionList)
            {
                int depth = Math.Abs(coor.Y - _currentPiece.Position.Y);
                if (depth > maxDepth)
                {
                    maxDepth = depth;
                }
            }

        }

        #endregion
    }
}
